package com.tensquare.spit;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import util.IdWorker;

/**
 * 启动类.
 *
 * @author 宫新程
 * @since 2019/3/4 0:04
 */
@SpringBootApplication
public class SpitApplication {

  public static void main(String[] args) {
    SpringApplication.run(SpitApplication.class, args);
  }

  @Bean
  public IdWorker idWorker() {
    return new IdWorker(1, 1);
  }
}
